﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kxx_API.DNS.ALI.DataModel
{
    /// <summary>
    /// 域名解析列表实体类
    /// </summary>
    public class DomainRecordDataModel
    {
        public ObservableCollection<DomainRecordDetailsDataModel> Record = new ObservableCollection<DomainRecordDetailsDataModel>();
    }

    /// <summary>
    /// 域名解析明细实体类
    /// </summary>
    public class DomainRecordDetailsDataModel
    {
        /// <summary>
        /// 当前的解析记录状态
        /// </summary>
        private string status;
        public string Status
        {
            get { return status; }
            set { status = value; }
        }

        /// <summary>
        /// 记录类型
        /// </summary>
        private string type;
        public string Type
        {
            get { return type; }
            set { type = value; }
        }

        /// <summary>
        /// 备注
        /// </summary>
        private string remark;
        public string Remark
        {
            get { return remark; }
            set { remark = value; }
        }

        /// <summary>
        /// 缓存时间设置。单位：秒
        /// </summary>
        private long? ttl;
        public long? TTL
        {
            get { return ttl; }
            set { ttl = value; }
        }

        /// <summary>
        /// 解析记录ID
        /// </summary>
        private string recordId;
        public string RecordId
        {
            get { return recordId; }
            set { recordId = value; }
        }

        /// <summary>
        /// mx记录的优先级
        /// </summary>
        private long? priority;
        public long? Priority
        {
            get { return priority; }
            set { priority = value; }
        }

        /// <summary>
        /// 主机记录
        /// </summary>
        private string rr;
        public string RR
        {
            get { return rr; }
            set { rr = value; }
        }

        /// <summary>
        /// 域名名称
        /// </summary>
        private string domainName;
        public string DomainName
        {
            get { return domainName; }
            set { domainName = value; }
        }

        /// <summary>
        /// 负载均衡权重
        /// </summary>
        private int? weight;
        public int? Weight
        {
            get { return weight; }
            set { weight = value; }
        }

        /// <summary>
        /// 记录值
        /// </summary>
        private string value;
        public string Value
        {
            get { return value; }
            set { this.value = value; }
        }

        /// <summary>
        /// 解析线路
        /// </summary>
        private string line;
        public string Line
        {
            get { return line; }
            set { line = value; }
        }

        /// <summary>
        /// 当前解析记录锁定状态
        /// </summary>
        private bool? locked;
        public bool? Locked
        {
            get { return locked; }
            set { locked = value; }
        }
    }
}
